package cn.tedu.wechatdemo.entity;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: Miyako
 * @Date: 2024-10-15-18:56
 * @Description:
 */
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
//关联到配置文件中有相同前缀的值
@ConfigurationProperties("tencent.webchat")
public class Account {

    String appId;
    String appSecret;
    String domain;
    String redirectUri;

}
